package day7;

public class USBfan implements Usb {
    private String pinpai;//品牌

    public USBfan(String pinpai) {
        this.pinpai = pinpai;
    }

    public String getPinpai() {
        return pinpai;
    }

    public void setPinpai(String pinpai) {
        this.pinpai = pinpai;
    }

    @Override
    public void plugin() {
        System.out.println(this.pinpai+"电风扇接上了Usb口，指示灯亮了");
    }

    @Override
    public void unuplug() {
        System.out.println(this.pinpai+"电风扇从Usb口移除，指示灯灭了");

    }

    @Override
    public void work() {
        System.out.println(this.pinpai+"电风扇扇叶转动，送出阵阵凉风");
    }
}
